package com.yizhubao.app.beans;

import com.yizhubao.app.base.BaseBean;

import java.util.List;

/**
 * 创建人: PACY
 * 创建时间: 6/17/21 10:46 AM
 * 邮箱: pengwwe457621023@qq.com
 * 类描述:
 */
public class RecordBean extends BaseBean {

    private long userId;
    private String content;
    private List<AssignorListDTO> assignorList;
    private List<UrlListDTO> urlList;
    private int type;


    public void setType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<AssignorListDTO> getAssignorList() {
        return assignorList;
    }

    public void setAssignorList(List<AssignorListDTO> assignorList) {
        this.assignorList = assignorList;
    }

    public List<UrlListDTO> getUrlList() {
        return urlList;
    }

    public void setUrlList(List<UrlListDTO> urlList) {
        this.urlList = urlList;
    }

    public static class AssignorListDTO {
        private String name;
        private String phone;


        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }


        @Override
        public String toString() {
            return "AssignorListDTO{" +
                    ", name='" + name + '\'' +
                    ", phone='" + phone + '\'' +
                    '}';
        }
    }

    public static class UrlListDTO {
        private String url;
        private int type;
        private boolean isAdd=false;

        public UrlListDTO(boolean isAdd) {
            this.isAdd = isAdd;
        }
        public UrlListDTO() {
        }
        public void setAdd(boolean add) {
            isAdd = add;
        }

        public boolean isAdd() {
            return isAdd;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }


        @Override
        public String toString() {
            return "UrlListDTO{" +
                    ", url='" + url + '\'' +
                    ", type=" + type +
                    '}';
        }
    }


    @Override
    public String toString() {
        return "RecordBean{" +
                ", userId=" + userId +
                ", content='" + content + '\'' +
                ", assignorList=" + assignorList.toString() +
                ", urlList=" + urlList.toString() +
                '}';
    }
}
